#include <iostream>
#include <cmath>
using namespace std;
class point{
public:
	point (int xx=0,int yy=0){x=xx;y=yy;count++;}
	int getx(){return x;}
	int gety(){return y;}
	void show(){cout<<"count="<<count<<endl;}
	friend class test;
	static int count;	
private:
	int x,y;
};
int point::count = 0;
class test{
public:
	double dist(point &p1,point &p2){
		double x=p1.x-p2.x;
		double y=p1.y-p2.y;
		return sqrt (x*x+y*y);
	}
};
int main(){
	point p1(3,4);
	p1.show();
	point p2(6,8);
	p2.show();
	test t;
	cout<<t.dist(p1,p2)<<endl;
}































